//
//  WWLocationManager.m
//  yygroupon
//
//  Created by 谢世忠 on 15/6/2.
//  Copyright (c) 2015年 waste. All rights reserved.
//

#import "WWLocationManager.h"
#import "WWLocationHelper.h"

@implementation WWLocationManager

+(void)startlocation:(BOOL)needaddress locationSuccess:(void (^)(double, double))locationSuccess addressSuccess:(void (^)(double, double, BMKAddressComponent *))addressSuccess{
    WWLocationHelper *helper=[WWLocationHelper instance];
    [helper startlocation:needaddress locationSuccess:^(double longitude, double latitude) {
        if (locationSuccess) {
            locationSuccess(longitude,latitude);
        }
    } addressSuccess:^(double longitude, double latitude, BMKAddressComponent *address) {
        if (addressSuccess) {
            addressSuccess(longitude,latitude,address);
        }
    }];

}
@end
